<?php 
namespace app\index\controller\one;

use think\Controller;

class Index extends Controller {

    public function index() {
        return 'one';
    }

    /**
     * /index/one.index/event 或
     * /index/one/index/event
     */
    public function event() {
        
        // $event = controller("Blog", "event");
        $event = \think\Loader::controller("Blog", "event");
        echo $event->add(1);

        // echo action("Blog/add", ["data" => 5], "event");
        echo \think\Loader::action("Blog/add", ["data" => 5], "event");
    }

}